package com.sky.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@EqualsAndHashCode(callSuper = true)
@Data
public class NVRException extends RuntimeException {

    @Serial
    private static final long serialVersionUID = -7688373656507964793L;

    private String code;

    private String message;

    public NVRException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
